<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

	<link title="RSS Feed" rel="alternate" type="application/rss+xml" href="<?php echo CHtml::normalizeUrl(array('post/feed')); ?>" />
	<!-- css slider-->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/sliderkit-site.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/sliderkit-core.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/sliderkit-demos.css" media="screen, projection" />
	
	<!-- JS Slider-->
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/external/_oldies/jquery-1.3.min.js"></script>
		<!--<script type="text/javascript" src="../lib/js/external/jquery-1.6.2.min.js"></script>-->
		
		<!-- jQuery Plugin scripts -->
		<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/external/jquery.easing.1.3.min.js"></script>
		<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/external/jquery.mousewheel.min.js"></script>
		
		<!-- Slider Kit scripts -->
		<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/sliderkit/jquery.sliderkit.1.9.1.pack.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<script type="text/javascript">
			$(window).load(function(){ //$(window).load() must be used instead of $(document).ready() because of Webkit compatibility	
	
				// News slider > Vertical
				$(".newslider-vertical").sliderkit({
					shownavitems:3,
					verticalnav:true,
					navitemshover:true,
					circular:true
				});
				
				// News slider > Horizontal
				$(".newslider-horizontal").sliderkit({
					auto:false,
					shownavitems:5,
					panelfx:"sliding",
					panelfxspeed:1000,
					panelfxeasing:"easeInOutExpo", //"easeOutExpo", "easeOutCirc", etc.
					mousewheel:true,
					keyboard:true,
					fastchange:false
				});
				
				// News slider > Minimal
				$(".newslider-minimal").sliderkit({
					auto:true,
					circular:true,
					shownavitems:1,
					panelfx:"sliding",
					panelfxspeed:400,
					panelfxeasing:"easeOutCirc",
					mousewheel:false,
					verticalnav:true,
					verticalslide:true
				});
				
				$(function() {
					$(".tabmenu").removeClass("hidden");
					$(".tabs h2").addClass("hidden");
					$(".tabs").tabs();
				});
				
				  
			});	
			
		</script>	
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.jcarousel.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.jcarousel.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/skin.css"/>

<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui.css" type="text/css" media="all" />	
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-ui.min.js"></script>	
</head>

<body>

<div class="container" id="page">

	<div id="header">
		<div id="logo"><?php //echo CHtml::link(CHtml::encode(Yii::app()->name),array('post/index')); ?>
			<?php $this->widget('application.extensions.login.XLoginPortlet',array(
			 'visible'=>Yii::app()->user->isGuest,
		)); ?>
		</div>
		
		
	</div><!-- header -->

	<div id="mainmenu">
		<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>Yii::app()->homeUrl),
				array('label'=>'About', 'url'=>array('site/page', 'view'=>'about')),
				array('label'=>'Contact', 'url'=>array('site/contact')),
				array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
				array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
			),
		)); ?>
		<div id="fconnect">
		<?php  
		$this->widget('application.extensions.facebook.FbLogin',
		array(
				'devappid'=>'251627968245052',   //your appilaction id
				'devsecret'=>'97d0b585cc7585153289db26a50a129f', //your application secret
				'cookie'=>FALSE,   
		));
		?>
		</div>
		<div id="rss"><?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl.'/systemImages/feed.gif'),array('site/feed')); ?></div>
	</div><!-- mainmenu -->
	

	<?php echo $content; ?>
	<div id="bg">
	<hr style="width:910px;margin-left:30px;color:#C9E0ED;"/>
	<div id="advertise">
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen2.css" media="all" />
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/execute.js"></script>
	<span class="ofis">Official Sponsors :</span>
	<ul class="gallery">
	<?php $sponsors = Sponsor::model()->findAll(); ?>
	<?php foreach($sponsors as $sponsor): ?>
		<li> <a href="<?php echo $sponsor->sponsor_link; ?>"><img src="<?php echo Yii::app()->request->baseUrl; ?>/sponsor/<?php echo $sponsor->logo_grey; ?>" class="grey" /></a>
			<img src="<?php echo Yii::app()->request->baseUrl; ?>/sponsor/<?php echo $sponsor->logo_color; ?>" class="color" />
		</li>
    <?php endforeach; ?>
     
	</ul>
	
	</div>
	
	<div id="footer">
	<hr />
		Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
		All Rights Reserved.<br/>
		<?php echo Yii::powered(); ?>
	</div><!-- footer -->
</div>
</div><!-- page -->

</body>
</html>